package com.gomokult.servlet.matching;

import java.io.*;
import com.gomokult.service.impl.MatchingServiceImpl;
import javax.servlet.http.*;
import javax.servlet.annotation.*;

@WebServlet("/servlet/CancelMatchingRequestServlet")
public class CancelMatchingRequestServlet extends HttpServlet {
	@Override
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
		int userID = Integer.parseInt(request.getParameter("userID"));
		MatchingServiceImpl.getSingleton().cancelMatching(userID);
	}
}
